﻿@using USERS.CYT369.COM.DAL
@using USERS.CYT369.COM.MODELS
@{
    var termsTypes = TermsService.Instance.GetTermsTypes();
}
<!DOCTYPE html>
<html>
<head>
    <partial name="_MetaPartial" />
    <title>@ViewBag.Title</title>
    <link href="~/css/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/css/site.css" rel="stylesheet" />
    <link href="~/css/rules.css" rel="stylesheet" />
    @RenderSection("styles", required: false)
    <script src="~/lib/jquery-3.4.1.min.js"></script>
</head>
<body>
    <div class="rule-header">
        <div class="panel">欢迎光临餐饮通网</div>
    </div>
    <div class="rule-center">
        <div class="panel">
            <img src="~/css/images/logo.png" class="logo-img" /><div class="name">@ViewBag.HeaderName</div>
        </div>
    </div>
    <div class="rule-menus">
        <div class="panel">
            <ul class="main_menu">
                <li class="goto_home"><a href="~/Rules/Index">规则体系</a></li>
                @*<li>规则体系</li>
                    <li>违规公示</li>*@
            </ul>
        </div>
    </div>
    <div class="rule-body panel">
        <div class="rule-body-menu">
            <ul class="rule-types">
                <li class="rllrule"><a href="~/Rules/Index">规则总览</a></li>
                @if (termsTypes != null)
                {
                    foreach (var item in termsTypes)
                    {
                        <li><a href="~/Rules/Index/@item.Id">@item.Name</a></li>
                    }
                }
            </ul>
        </div>
        <div class="rule-body-content">
            @RenderBody()
        </div>
    </div>
    <partial name="_footer" />

    @RenderSection("scripts", required: false)
</body>
</html>
